package com.andy.buyu.server.dto;

import com.andy.buyu.server.entity.UsrGameLog;
import com.andy.buyu.server.game.GameUser;

import io.netty.buffer.ByteBuf;

/**
 * 炮弹攻击
 * @author cuiwm
 */
public class LabaMessage extends BaseMessage{
	
	private GameUser user;
	private UsrGameLog log;
    
    public LabaMessage(GameUser user,UsrGameLog log) {
    	this.user = user;
    	this.log = log;
	}

	@Override
	public void writeBody(ByteBuf buf) {
//		buf.writeInt(user.getId().intValue());
		buf.writeInt(log.getRate());
		buf.writeInt(log.getAddCoin());
	}


}